<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/8/10
 * Time: 16:09
 */

namespace App\Http\Controllers\Api;


use App\Http\Controllers\Controller;
use Illuminate\Http\Request;

class BaseController extends Controller
{
    protected $config;
    public $request;

    public function __construct(Request $request)
    {
        $this->request = $request;
        $this->appUrl = env('APP_URL');
        $this->config = [
            'app_id' => env('PUSHER_APP_ID'),
            'secret' =>  env('PUSHER_APP_SECRET'),
            // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
            'response_type' => 'array',
            'log' => [
                'level' => 'debug',
                'file' => storage_path('logs').'/wechat.log',
            ],
        ];
    }

}
